package com.zuowei.ycy.user.http;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 发送验证码
 */
public interface RegisterLog {

    /**
     * 发送验证码
     */
    @FormUrlEncoded
    @POST("RegisterLog/sendVerify")
    Call<ResponseBody> sendVerify(@Field("account") String account, @Field("type") String type);

    /**
     * 注册
     */
    @FormUrlEncoded
    @POST("RegisterLog/register")
    Call<ResponseBody> register(@Field("account") String account, @Field("password") String password, @Field("verify") String verify);

    /**
     * 忘记密码
     */
    @FormUrlEncoded
    @POST("RegisterLog/resetPassword")
    Call<ResponseBody> resetPassword(@Field("account") String account, @Field("password") String password, @Field("verify") String verify);

    /**
     * 登录
     */
    @FormUrlEncoded
    @POST("RegisterLog/Login")
    Call<ResponseBody> Login(@Field("account") String account, @Field("password") String password);

    @POST("RegisterLog/threeLogin")
    @FormUrlEncoded
    Call<ResponseBody> threeLogin(@Field(("openid")) String openid);

}
